package com.nervous.jiaoli.user.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class User {

    private String u_id;
    private String u_name;
    private String u_pwd;
    private Integer u_sex;//1男0女
    private String u_avatar;
    private String u_sign;//个性签名
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat(pattern = "yyyy-MM-dd") //说明接收日期数据的格式
    private Date u_birth;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"//jackson在序列化时间时是按照国际标准时间GMT进行格式化的，而在国内默认时区使用的是CST时区，两者相差8小时。
    )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //说明接收日期数据的格式
    private Date u_reg_time;//登陆时间
    private Integer u_status;

    public String getU_id() {
        return u_id;
    }

    public void setU_id(String u_id) {
        this.u_id = u_id;
    }

    public String getU_name() {
        return u_name;
    }

    public void setU_name(String u_name) {
        this.u_name = u_name;
    }

    public Integer getU_sex() {
        return u_sex;
    }

    public void setU_sex(Integer u_sex) {
        this.u_sex = u_sex;
    }

    public String getU_avatar() {
        return u_avatar;
    }

    public void setU_avatar(String u_avatar) {
        this.u_avatar = u_avatar;
    }

    public String getU_sign() {
        return u_sign;
    }

    public void setU_sign(String u_sign) {
        this.u_sign = u_sign;
    }



    public Date getU_birth() {
        return u_birth;
    }

    public void setU_birth(Date u_birth) {
        this.u_birth = u_birth;
    }


    public Date getU_reg_time() {
        return u_reg_time;
    }

    public void setU_reg_time(Date u_reg_time) {
        this.u_reg_time = u_reg_time;
    }

    public Integer getU_status() {
        return u_status;
    }

    public void setU_status(Integer u_status) {
        this.u_status = u_status;
    }

    public String getU_pwd() {
        return u_pwd;
    }

    public void setU_pwd(String u_pwd) {
        this.u_pwd = u_pwd;
    }
}
